package com.javatraining.corejava.homework.bicycle;

/**
 * @author kmatharasi
 * 
 * Demo Class to instantiate the Bicycle 
 *
 */
public class BicycleDemo {


	public static void main(String[] args) {
		
		Bicycle bike1 = new Bicycle();
	     	
		
	    bike1.setModel("Hercules");	  
	    
        bike1.setMake("MTB");
	    
        bike1.setYear(1999);
        
        bike1.setSerialNumber("1234");
        
        bike1.setMotion(true);
        
        bike1.setGear(1);
        
        bike1.setCurrentSpeed(10);
       
        bike1.setGear(2);
       
        System.out.println(bike1.getModel());
        System.out.println("------------------");
        System.out.println(bike1.getMake());
        System.out.println("------------------");
        System.out.println(bike1.getYear());
        System.out.println("------------------");
        System.out.println(bike1.getSerialNumber());
        System.out.println("------------------");
        System.out.println(bike1.getMotion());
        System.out.println("------------------");
        System.out.println(bike1.getNumberOfGears());
        System.out.println("------------------");
        System.out.println(bike1.getCurrentSpeed());
        System.out.println("------------------");
        System.out.println(bike1.getGear());
        System.out.println("------------------");
		bike1.start();
		
		bike1.accelerate(2,10);	
	
		bike1.decelerate(1,5);	
		
		bike1.changeGear(1);
		
		bike1.upgradeBicycle(1999,4);
		
		bike1.stop(false,0);
		

	}

}

